<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddReviewRequestNodeIdIndexInNoteTable extends AbstractMigration
{
    public function up()
    {
        $this->table('note')->addIndex(['review_request_node_id'], ['name' => 'idx_review_request_node', 'type' => 'normal'])->save();
    }

    public function down()
    {
        $this->table('note')->removeIndexByName('idx_review_request_node')->save();
    }
}
